<?php define('START',microtime(true));
define('X_STAGE',0); // 0:DEV, 1:TESTING, 2:PROD
ini_set("display_errors",(X_STAGE<2));error_reporting(E_ALL);
define('LIBS_PATH',         realpath(dirname(__FILE__). '/../../libs'));
define('APPLICATION_PATH',  realpath(dirname(__FILE__). '/../application'));
define('CONFIG_FILE_PATH',  APPLICATION_PATH. '/config.php');
define('DOCUMENT_ROOT',     realpath(dirname(__FILE__)));
define('HTTP_ROOT', "http".((empty($_SERVER["HTTPS"]))? "":"s")."://".$_SERVER['SERVER_NAME'].str_replace('/mvc/public','',str_replace("//","/",preg_replace("#^(.*)/".preg_quote(basename(__FILE__),"#").".*$#i","$1",$_SERVER['PHP_SELF']))));
require_once LIBS_PATH."/core/config.php";
// X_config::


require_once LIBS_PATH."/core/xenon.php";

$X= new X_mvc(basename(__FILE__));

$X->run();

X_debug::paths();
